package com.ys.homework;

/**
 * @author CodeYang
 * @Description TODO
 * @Date 2020/12/14 19:43
 */
public class 交通工具01 {

    public static void main(String[] args) {
        Vehicle obj =new Vehicle(0,20);
        // 通过对象设置速度
        obj.setSpeed(20);
        obj.speedUp();
        obj.speedDown();
        obj.move();


    }
}
